home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / amiexpress / source / ae / code / ax3.00 / myerror.c < prev    next >
Encoding:
C/C++ Source or Header  |  1980-01-03  |  1.6 KB  |  48 lines

  1. #include "bbs.h"
  2.  
  3. void MyError(int flag)
  4. {
  5.  switch(flag) {
  6.    case 0:       /* MemoryError */
  7.       sprintf(WORKB,"Could not allocate enough memory for workspace");
  8.       break;
  9.    case 1:    /* MemError */
  10.       sprintf(WORKB,"Tell %s there is a memory problem.",Cmds->SysopName);
  11.       break;
  12.    case 2:   /* MSGBerr */
  13.       sprintf(WORKB,"Msg Base ERROR!!  Please notify %s",Cmds->SysopName);
  14.       break;
  15.    case 3:  /* Nomem */
  16.       sprintf(WORKB,"No Mem Error: Not enough memory to finish operation");
  17.       break;
  18.    case 4:  /* FileListError */
  19.       sprintf(WORKB,"There is a problem with File listings, please tell %s",Cmds->SysopName);
  20.       break;
  21.    case 5:  /* sorry */
  22.       AEPutStr("No files available in this conference.\r\n\r\n");  return;
  23.    case 6:   /* Examine error */
  24.       sprintf(WORKB,"Tell %s there is a File Examine Error",Cmds->SysopName);  break;
  25.    case 7:
  26.         sprintf(WORKB,"Tell %s the system can't open a file in the work dirs",Cmds->SysopName);
  27.      break;
  28.    case 8:     /* lock error */
  29.         sprintf(WORKB,"Tell %s the system has a Lock Error",Cmds->SysopName);   break;
  30.    case 9:     /* Free Space error */
  31.      sprintf(WORKB,"Not enough free space on Device for uploading.");   break;
  32.    case 10:
  33.     sprintf(WORKB,"\r\nYou may not include any special symbols\r\n"); return;
  34.    case 11:
  35.     sprintf(WORKB,"Out of chipmem for FileInfoBlock"); break;
  36.    case 12:
  37.     AEPutStr("\r\nNo bulletins are available in this conference!\r\n\r\n"); return;
  38.  }
  39.  
  40.  AEPutStr("\r\n");
  41.  AEPutStr(WORKB);
  42.  AEPutStr("\r\n\r\n");
  43.  
  44.  strcat(WORKB,"\n");
  45.  ErrorLog(WORKB);
  46.  
  47. }
  48.